package org.stars.daostars.starterkit;

import org.stars.daostars.starterkit.DaoGeneric;
import org.stars.daostars.starterkit.EntityBeanBase;


/**
 *	Factory dei dao. 
 *
 * @author Francesco Benincasa (908099)
 * @date 05/nov/07, 17:57:34
 *
 */
public class DaoFactory {
		
	public static <U extends EntityBeanBase> DaoGeneric<U> makeDaoGeneric(Class<U> entityType)
	{
		return new DaoGeneric<U>(entityType);
	}

	
	public static <U extends EntityBeanBase> DaoGeneric<U> makeDaoGeneric(Class<U> entityType, String connectionName)
	{
		return new DaoGeneric<U>(entityType, connectionName);
	}
}
